package vn.fpt.bussiness.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vn.fpt.bussiness.EmployeeBus;
import vn.fpt.dao.EmployeeDao;
import vn.fpt.entities.Employee;




@Service
public class EmployeeBusImpl implements EmployeeBus {
	
	@Autowired
	private EmployeeDao employeeDao;

	@Override
	public int insertRow(Employee employee) {		
		return employeeDao.insertRow(employee);
	}

	@Override
	public List<Employee> getList() {
		return employeeDao.getList();
	}

	@Override
	public Employee getRowById(int id) {
		return employeeDao.getRowById(id);
	}

	@Override
	public int updateRow(Employee employee) {
		return employeeDao.updateRow(employee);
	}

	@Override
	public int deleteRow(int id) {
		return employeeDao.deleteRow(id);
	}

}
